<div class="form" style="border:1px solid #d7d7d7;border-top:none;padding:10px;">
<?php $form=$this->beginWidget('CActiveForm', array(
	'id'=>'category-form',
	'enableAjaxValidation'=>TRUE,
)); ?>
	<?php echo $form->errorSummary($model); ?>

	<p class="shortinputWp">
		<?php echo $form->labelEx($model,'name'); ?>
		<?php echo $form->textField($model,'name',array('size'=>40,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'name'); ?> 
	</p>

	<p class="shortinputWp">
		<?php echo $form->labelEx($model,'keyfile'); ?>
		<?php echo $form->textField($model,'keyfile',array('size'=>40,'maxlength'=>100)); ?>
		<?php echo $form->error($model,'keyfile'); ?> 
	</p>

	<div class="submitButton">
		<?php echo CHtml::submitButton($model->isNewRecord ? '添加分类' : '修改分类'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- form -->